export { tableColumn, tableConfig } from './tableConfig';

import { createFormColumn } from './createConfig';
import { editorFormColumn } from './editorConfig';
import { createSubmit, editorHttp, editorSubmit, detailHttp, deleteHttp, batchOperation, upload, exportFile } from './functionConfig';

/**
 *  表单整体配置
 */
export const formConfig = {
    create: {
        formConfig: {
            gutter: 20,
            span: 3,
        },
        width: '60%',
        data: createFormColumn,
        custom: false,
        submit: createSubmit,
    },
    editor: {
        formConfig: {
            gutter: 20,
            span: 3,
        },
        width: '60%',
        data: editorFormColumn,
        requestData: true,
        custom: false,
        getEditor: editorHttp,
        submit: editorSubmit,
    },
    detail: {
        formConfig: {
            gutter: 20,
            span: 3,
        },
        width: '60%',
        requestData: true,
        custom: false,
        getDetail: detailHttp,
    },
    delete: {
        width: '60%',
        custom: false,
        submit: deleteHttp,
    },
    batchOperation,
    upload,
    exportFile,
};



